home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 830 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: hearst.acc.Virginia.EDU!adastra!mbs
  2. Newsgroups: comp.sys.amiga.misc
  3. From: mbs@adastra.cvl.va.us (Michael B. Smith)
  4. Subject: Re: OS features
  5. References: <92747544038@PAPA.NORTH.DE> <4b3h9s$1st@alterdial.UU.NET> <2152.6561T63T2136@cycor.ca> <4b7i18$si1@vixen.cso.uiuc.edu> <oj6raxxrr0o.fsf@hpsrk.fc.hp.com> <13213431@sourcery.han.de> <4cp0un$cve@serpens.rhein.de> <4cs4ji$rou@news.mpd.tandem.com> <4csfkl$oco@serpens.rhein.de>
  6. X-NewsReader: GRn 3.0b24 December 30, 1995
  7. MIME-Version: 1.0
  8. Content-Type: text/plain; charset=iso-8859-1
  9. Content-Transfer-Encoding: 8bit
  10. Message-ID: <mbs.4720@adastra.cvl.va.us>
  11. Date: Tue, 9 Jan 96 22:18:57 EDT
  12. Organization: Only if you insist...
  13.  
  14. In article <4csfkl$oco@serpens.rhein.de> mlelstv@serpens.rhein.de (Michael van Elst) writes:
  15. > Joseph Crowe <jcrowe> writes:
  16. > >   I'm struggling to understand what you mean by the above paragraph.  I don't
  17. > >find it at all desirable to have a system where an interface library can
  18. > >arbitrarily corrupt data structures in user task space.  Could you relate this
  19. > >concept to a more concrete example?
  20.  
  21. > So the design for memory protection doesn't need to protect arbitrary
  22. > objects. You just have to protect the good guys (well debugged libraries)
  23. > against the bad guys (arbitrary user code).
  24.  
  25. "Because there be dragons...."
  26.  
  27. A fairly well-known mainframe OS has a capability for user-mode callbacks
  28. to occur from some operating system functions.
  29.  
  30. It goes through a great deal of effort to protect the OS from the user
  31. possible faults.
  32.  
  33. > >   With demand paged VM, there's often multiple sizes of allocation units, at
  34. > >least, once you leave user space.
  35. >
  36. > Huh ? The "allocation" unit is a page. And a page is usually of constant
  37. > size for the whole system.
  38.  
  39. On Unix, that's typically been true. On mainframe OS'es page is not normally
  40. a constant.
  41.  
  42. The same OS I talked about above maintains a page table (never swapped)
  43. that defines the size of all memory blocks; and whether they are swapped
  44. out or not (plus quite a bit of other status data). Only the page size
  45. is swapped (and I _think_, but am not sure, that the limitation is only
  46. that the page size must be quad-word aligned (in this case, a word is
  47. six bytes) so you may "waste" 23 bytes but no more).
  48. --
  49.   //   Michael B. Smith
  50. \X/    mbs@adastra.cvl.va.us
  51.